#!/bin/bash  
while getopts :t:p:c:a:b:r:i:l:w:d:e:o:s:n:k: ARGS
do
case $ARGS in
    t)
       theme=$OPTARG
        ;;
esac
done
root=$(cd `dirname $0`; pwd)
if [ $theme ]; then
customize=${root}/src/main/customize
echo ${customize}
#重命名
find ${customize} -type f -name "*_"${theme}".*" -execdir bash -c 'mv "$1" "${1//_'${theme}'/}"' Mover  {} \;
#资源覆盖
cp -rf ${customize}/${theme}/* ${customize}/../res/
rm -rf ${customize}
fi
